<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link type="text/css" rel="stylesheet" href="/xinanshop/Public/qianduan/css/style.css" />
    <!--[if IE 6]>
    <script src="/xinanshop/Public/qianduan/js/iepng.js" type="text/javascript"></script>
        <script type="text/javascript">
           EvPNG.fix('div, ul, img, li, input, a'); 
        </script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="/xinanshop/Public/qianduan/css/ShopShow.css" />
    <link rel="stylesheet" type="text/css" href="/xinanshop/Public/qianduan/css/MagicZoom.css" />
    
    <script type="text/javascript" src="/xinanshop/Public/qianduan/js/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="/xinanshop/Public/qianduan/js/menu.js"></script>    
            
	<script type="text/javascript" src="/xinanshop/Public/qianduan/js/lrscroll_1.js"></script>   
     
    
	<script type="text/javascript" src="/xinanshop/Public/qianduan/js/n_nav.js"></script>
    
    
    <script type="text/javascript" src="/xinanshop/Public/qianduan/js/MagicZoom.js"></script>
    
    <script type="text/javascript" src="/xinanshop/Public/qianduan/js/num.js">
    	var jq = jQuery.noConflict();
    </script>
        
    <!-- <script type="text/javascript" src="/xinanshop/Public/qianduan/js/p_tab.js"></script> -->
    
    <script type="text/javascript" src="/xinanshop/Public/qianduan/js/shade.js"></script>
    <script type="text/javascript" src="/xinanshop/Public/qianduan/js/jquery.js"></script>

    
<title>尤洪</title>
</head>
<body>  

<!--Begin Header Begin-->
<div class="soubg">
	<div class="sou">
    	<!--Begin 所在收货地区 Begin-->
    	
        <!--End 所在收货地区 End-->
        <span class="fr">
        <?php if($user_id > 0): ?><span class="fl">你好，<?php echo ($username); ?>&nbsp; <a href="<?php echo ($logout); ?>" style="color:#ff4e00;">退出</a>&nbsp;|&nbsp;<a href="<?php echo ($myorder); ?>">我的订单</a>&nbsp;|
        <?php else: ?>   
        <span class="fl">你好，请<a style="color: red" href="<?php echo ($loginform); ?>">登录</a>&nbsp; <a href="<?php echo ($register); ?>" style="color:#ff4e00;">免费注册</a>&nbsp;|&nbsp;<a href="<?php echo ($myorder); ?>">我的订单</a>&nbsp;|<?php endif; ?></span>
            <span class="ss">
                <div class="ss_list">
                    <a href="#">收藏夹</a>
                    <div class="ss_list_bg">
                        <div class="s_city_t"></div>
                        <div class="ss_list_c">
                            <ul>
                                <li><a href="#">我的收藏夹</a></li>
                                <li><a href="#">我的收藏夹</a></li>
                            </ul>
                        </div>
                    </div>     
                </div>
                <div class="ss_list">
                    <a href="#">客户服务</a>
                    <div class="ss_list_bg">
                        <div class="s_city_t"></div>
                        <div class="ss_list_c">
                            <ul>
                                <li><a href="#">客户服务</a></li>
                                <li><a href="#">客户服务</a></li>
                                <li><a href="#">客户服务</a></li>
                            </ul>
                        </div>
                    </div>    
                </div>
                <div class="ss_list">
                    <a href="#">网站导航</a>
                    <div class="ss_list_bg">
                        <div class="s_city_t"></div>
                        <div class="ss_list_c">
                            <ul>
                                <li><a href="#">网站导航</a></li>
                                <li><a href="#">网站导航</a></li>
                            </ul>
                        </div>
                    </div>    
                </div>
            </span>
            <span class="fl">|&nbsp;关注我们：</span>
            <span class="s_sh"><a href="#" class="sh1">新浪</a><a href="#" class="sh2">微信</a></span>
            <span class="fr">|&nbsp;<a href="#">手机版&nbsp;<img src="/xinanshop/Public/qianduan/images/s_tel.png" align="absmiddle" /></a></span>
        </span>
    </div>
</div>
<!--**************************************************************-->
<div class="top">
    <div class="logo"><a href="<?php echo ($index); ?>"><img width="207px" src="/xinanshop/Public/qianduan/images/logo.png" /></a></div>
    <div class="search">
      <form>
          <input type="text" value="" class="s_ipt" />
            <input type="submit" value="搜索" class="s_btn" />
        </form>                      
        <span class="fl"><a href="#">1</a><a href="#">2</a><a href="#">3</a><a href="#">4</a><a href="#">5</a><a href="#">6</a></span>
    </div>
    <div class="i_car">
      <div class="car_t"><a href="<?php echo ($buycar); ?>">我的购物车</a></div>
        
    </div>
</div>
<!--End Header End--> 
<!--Begin Menu Begin-->
<div class="menu_bg">
  <div class="menu">
      <!--Begin 商品分类详情 Begin-->    
      <div class="nav">
          <div class="nav_t">全部商品分类</div>
            <div class="leftNav none">
                <ul>      
            <!--*************二级表单开始****************-->
                 <?php if(is_array($top_banner_left)): foreach($top_banner_left as $key=>$vo): ?><li>
                        <div class="fj">
                            <span class="n_img"><span></span><img src="/xinanshop/Public/qianduan/images/i_tel.png" /></span>
                         <span class="fl"><?php echo ($vo['catename']); ?></span>
                        </div>
                        <div class="zj">
                            <div class="zj_l">
                                <div class="zj_l_c">
                                <h2>您是不是想找....</a></h2>
                                    <?php if(is_array($vo['child'])): foreach($vo['child'] as $key=>$vo): ?><a href="<?php echo ($productlist); ?>?cateid=<?php echo ($vo['id']); ?>"><?php echo ($vo['catename']); ?></a>|<?php endforeach; endif; ?>
                                </div>
                            </div>
                            <div class="zj_r">
                            <a href="#"><img src="/xinanshop/Public/qianduan/images/n_img1.jpg" width="236" height="200" /></a>
                            <a href="#"><img src="/xinanshop/Public/qianduan/images/n_img2.jpg" width="236" height="200" /></a>
                            </div>
                        </div>
                    </li><?php endforeach; endif; ?> 
            <!--*************二级表单结束****************-->
                      
                </ul>            
            </div>
        </div>  
        <!--End 商品分类详情 End-->                                                     
      <!-- <ul class="menu_r">
          <li><a href="Index.html">首页</a></li>
            <li><a href="Food.html">美食</a></li>
            <li><a href="Fresh.html">生鲜</a></li>
            <li><a href="HomeDecoration.html">家居</a></li>
            <li><a href="SuitDress.html">女装</a></li>
            <li><a href="MakeUp.html">美妆</a></li>
            <li><a href="Digital.html">数码</a></li>
            <li><a href="GroupBuying.html">团购</a></li>
        </ul> -->
        <div class="m_ad">中秋送好礼！</div>
    </div>
</div>
<!--**************************************************************-->
        
<!--End Menu End--> 
<div class="i_bg" style="margin-top: ">  
    <div class="content mar_20">
    	<img src="/xinanshop/Public/qianduan/images/img1.jpg" / >        
    </div>
    
    <!--Begin 第一步：查看购物车 Begin -->
    <form method="post" action="<?php echo ($buysome); ?>">
    <!-- <div class="content mar_20" style="margin-top: 0px"> -->
    	<table border="0" class="car_tab" style="width:1200px; margin-bottom:50px;" cellspacing="0" cellpadding="0">
          <tr>
            <td class="car_th" width="40"></td>
            <td class="car_th" width="450">商品名称</td>
            <td class="car_th" width="140">属性</td>
            <td class="car_th" width="150">单价</td>
            <td class="car_th" width="130">购买数量</td>
            <td class="car_th" width="140">小计</td>
            <td class="car_th" width="150">操作</td>
          </tr>
        <?php if(empty($goods)): ?><tr><td rowspan="5" style="color: red;text-align: center;font-size: 40px;font-weight: bold;">您的购物车为空</td></tr>
        <?php else: if(is_array($goods)): foreach($goods as $key=>$vo): ?><tr>
          <td><input class="inputt" type="checkbox" style="height: 20px;width: 20px" name="buycarid[]" value="<?php echo ($vo['id']); ?>"></input></td>
            <td>
            	<div class="c_s_img"><img src="/xinanshop/Public/csf/upload/<?php echo ($vo['name']); ?>" width="73" height="73" /></div>
                商品名称：<?php echo ($vo['goodsname']); ?><br>
                商品描述：<?php echo ($vo['description']); ?>
            </td>
            <td align="center">颜色：字段待定</td>
            <td align="center"  class="price">
                <span class="money"><?php echo ($vo['price']); ?>
                </span><span>元</span>
            </td>
            <td align="center">
            	<div class="c_num" >
                    <input value="<?php echo ($vo['goods_id']); ?>" type="hidden" class="goodsid">
                    <input type="button" value="" onclick="jianUpdate1(jq(this));" class="car_btn_1" />
                	<input type="text" value="<?php echo ($vo['buynum']); ?>" name="" class="car_ipt" />  
                    <input type="button" value="" onclick="addUpdate1(jq(this));" class="car_btn_2" />
                </div>
            </td>
            
            <td align="center" class="total" style="color: red;font-size: 14px"><?php echo ($vo['price']*$vo['buynum']); ?></td>
            <!-- <td align="center"><a onclick="ShowDiv('MyDiv','fade')">删除</a>&nbsp; &nbsp;<a href="#">加入收藏</a></td> -->
            <input type="hidden" value="<?php echo ($vo['id']); ?>" class="carid">
            <td align="center"><a onclick="return del(this);" ><span style="font-size: 12px;color: red;">删除</span></a></td>
          </tr><?php endforeach; endif; endif; ?>

       <!--************************************************************************-->
        <script type="text/javascript">//商品数量增加
            jq('.car_btn_2').on('click',function(){
                var add = parseInt(jq(this).parent().find('.car_ipt').attr('value'));//商品数量
                var p=parseInt(jq(this).parent().parent().parent().find('.money').text());//商品单价
                var t=p*add;//总价=单价*商品数量
                var total=jq(this).parent().parent().parent().find('.total').text(t);
                // console.log(p);
            });
        </script>
        <script type="text/javascript">//商品数量减少
            jq('.car_btn_1').on('click',function(){
                var add = parseInt(jq(this).parent().find('.car_ipt').attr('value'));
                var p=parseInt(jq(this).parent().parent().parent().find('.money').text());
                var t=p*add;//总价=单价*商品数量
                var total=jq(this).parent().parent().parent().find('.total').text(t);
                // console.log(t);
            });
        </script>
        <!--************************商品总价钱********************************************-->
        <script type="text/javascript">
            jq('.inputt').on('change',function(){

                var price =parseInt(jq(this).parent().parent().find('.total').text());
                // price+=price;
                var t=parseInt(jq(this).parent().parent().parent().parent().find('#totalpay').text());
                // console.log (t)
                var w =price+t;
                jq(this).parent().parent().parent().parent().find('#totalpay').text(w);

            });
        </script>
        <!--//*/*/*/**/*/*/*/*/*/****/更新buycar表的购买数量*/*/*/*/*/*/*/*/*/**/*/*/*/*/*/*/*/-->
         <script type="text/javascript">
                    jq('.car_btn_1,.car_btn_2').on('click',function(){
                        var a ={goodsid:jq(this).parent().find('.goodsid').attr('value'),
                                buynum:jq(this).parent().find('.car_ipt').attr('value'),
                                totalpay:jq(this).parent().parent().parent().find('.total').text()
                                };
                        var id=jq(this).parent().parent().parent();
                        jq.ajax({
                            type:'post',
                            url:"<?php echo ($buynum); ?>",
                            data:a,
                            dataType:'json',
                            success:function(data){
                                if(data.code=='666'){
                                    // jq('#tobuycar').attr('onclick',"ShowDiv_1('MyDiv1','fade1')");
                                   // window.location:
                                }else if(data.code=='000'){
                                    alert(data.msg);
                                }
                            }
                        });
                        return false;
                    });
                </script>
       <!--************************************************************************-->
       <!--************************************************************************-->
        <script type="text/javascript">//移除购物车

                function del(obj){
                    // ShowDiv('MyDiv','fade');
                    if(confirm('确定要删除吗？')){

                        var del=jq(obj).parent().parent(); 
                        // console.log(del);
                        jq.ajax({
                            type:'post',
                            url:"<?php echo ($movecar); ?>",
                            data:{buycarid:jq(del).find('.carid').attr('value')},
                            dataType:'json',
                            success:function(data){
                                if(data.code=='666'){
                                    jq(del).remove();
                                }else if(data.code=='000'){ 
                                    alert(data.msg);
                                }
                            }
                        });
                        return false;
                    }else{
                        return false;
                    }
                }
      </script>
     <!--************************************************************************-->
       <!--//*/*/*/**/*/*/*/*/*/****/把商品移除购物车，同时从数据删除该条记录*/*/*/*/*/*/*/*/*/**/*/*/*/*/*/*/*/-->
         
      
         
          <tr height="70">
          	<td colspan="7" style="font-family:'Microsoft YaHei'; border-bottom:0;">
            	
             <span class="fr">商品总价：<b id="totalpay" style="font-size:22px; color:#ff4e00;"><!--<?php echo ($totalpay); ?>-->0</b></span>
            </td>
          </tr>
          <tr valign="top" height="150">
          	<td colspan="7" align="right">
            	<a href="<?php echo ($buy); ?>"><img src="/xinanshop/Public/qianduan/images/buy1.gif" /></a>&nbsp; &nbsp; <button><img src="/xinanshop/Public/qianduan/images/buy2.gif" /></button></a>
            </td>
          </tr>
        </table>
        </form>
    </div>
	<!--End 第一步：查看购物车 End--> 
    
    
      <!--Begin 弹出层-删除商品 Begin-->
    <div id="fade" class="black_overlay"></div>
    <div id="MyDiv" class="white_content">             
        <div class="white_d">
            <div class="notice_t">
                <span class="fr" style="margin-top:10px; cursor:pointer;" onclick="CloseDiv('MyDiv','fade')"><img src="/xinanshop/Public/qianduan/images/close.gif" /></span>
            </div>
            <div class="notice_c">
                
                <table border="0" align="center" style="font-size:16px;" cellspacing="0" cellpadding="0">
                  <tr valign="top">
                    <td>您确定要把该商品移除购物车吗？</td>
                  </tr>
                  <tr height="50" valign="bottom">
                    <td><a  class="b_sure">确定</a><a href="#" class="b_buy">取消</a></td>
                  </tr>
                </table>
                    
            </div>
        </div>
    </div>  
    <!--End 弹出层-删除商品 End-->
    
      
      <!--************************************************************************-->
    <!--Begin Footer Begin -->
       <!--*************************************************************************-->
        <!-- <script type="text/javascript">
                    $('#movecar').on('click',function(){
                        $.ajax({
                            type:'post',
                            url:"<?php echo ($movecar); ?>",
                            data:"goodsid=<?php echo ($vo['id']); ?>",
                            dataType:'json',
                            success:function(data){
                                if(data.code=='666'){

                                    // jq('#tobuycar').attr('onclick',"ShowDiv_1('MyDiv1','fade1')");
                                    alert(data.msg);
                                }else if(data.code=='000'){
                                    alert(data.msg);
                                }
                            }
                        });
                        return false;
                    });
                </script> -->
    <!--****************************761925*********************************************-->
   
    
    
    <!--Begin Footer Begin -->
    <div class="b_btm_bg bg_color">
        <div class="b_btm">
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/xinanshop/Public/qianduan/images/b1.png" width="62" height="62" /></td>
                <td><h2>正品保障</h2>正品行货  放心购买</td>
              </tr>
            </table>
			<table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/xinanshop/Public/qianduan/images/b2.png" width="62" height="62" /></td>
                <td><h2>满38包邮</h2>满38包邮 免运费</td>
              </tr>
            </table>
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/xinanshop/Public/qianduan/images/b3.png" width="62" height="62" /></td>
                <td><h2>天天低价</h2>天天低价 畅选无忧</td>
              </tr>
            </table>
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/xinanshop/Public/qianduan/images/b4.png" width="62" height="62" /></td>
                <td><h2>准时送达</h2>收货时间由你做主</td>
              </tr>
            </table>
        </div>
    </div>
    <div class="b_nav">
    	<dl>                                                                                            
        	<dt><a href="#">新手上路</a></dt>
            <dd><a href="#">售后流程</a></dd>
            <dd><a href="#">购物流程</a></dd>
            <dd><a href="#">订购方式</a></dd>
            <dd><a href="#">隐私声明</a></dd>
            <dd><a href="#">推荐分享说明</a></dd>
        </dl>
        <dl>
        	<dt><a href="#">配送与支付</a></dt>
            <dd><a href="#">货到付款区域</a></dd>
            <dd><a href="#">配送支付查询</a></dd>
            <dd><a href="#">支付方式说明</a></dd>
        </dl>
        <dl>
        	<dt><a href="#">会员中心</a></dt>
            <dd><a href="#">资金管理</a></dd>
            <dd><a href="#">我的收藏</a></dd>
            <dd><a href="#">我的订单</a></dd>
        </dl>
        <dl>
        	<dt><a href="#">服务保证</a></dt>
            <dd><a href="#">退换货原则</a></dd>
            <dd><a href="#">售后服务保证</a></dd>
            <dd><a href="#">产品质量保证</a></dd>
        </dl>
        <dl>
        	<dt><a href="#">联系我们</a></dt>
            <dd><a href="#">网站故障报告</a></dd>
            <dd><a href="#">购物咨询</a></dd>
            <dd><a href="#">投诉与建议</a></dd>
        </dl>
        <div class="b_tel_bg">
        	<a href="#" class="b_sh1">新浪微博</a>            
        	<a href="#" class="b_sh2">腾讯微博</a>
            <p>
            服务热线：<br />
            <span>400-123-4567</span>
            </p>
        </div>
        <div class="b_er">
            <div class="b_er_c"><img src="/xinanshop/Public/qianduan/images/er.gif" width="118" height="118" /></div>
            <img src="/xinanshop/Public/qianduan/images/ss.png" />
        </div>
    </div>    
    <div class="btmbg">
		<div class="btm">
        	备案/许可证编号：蜀ICP备12009302号-1-www.dingguagua.com   Copyright © 2015-2018 尤洪商城网 All Rights Reserved. 复制必究 , Technical Support: Dgg Group <br />
            <img src="/xinanshop/Public/qianduan/images/b_1.gif" width="98" height="33" /><img src="/xinanshop/Public/qianduan/images/b_2.gif" width="98" height="33" /><img src="/xinanshop/Public/qianduan/images/b_3.gif" width="98" height="33" /><img src="/xinanshop/Public/qianduan/images/b_4.gif" width="98" height="33" /><img src="/xinanshop/Public/qianduan/images/b_5.gif" width="98" height="33" /><img src="/xinanshop/Public/qianduan/images/b_6.gif" width="98" height="33" />
        </div>    	
    </div>
    <!--End Footer End -->    
</div>

</body>

<!-- <script src="/xinanshop/Public/qianduan/js/ShopShow.js"></script> -->

<!--[if IE 6]>
<script src="//letskillie6.googlecode.com/svn/trunk/2/zh_CN.js"></script>
<![endif]-->
</html>